<form name="widgetform">
    {{each behavior as data}}
    <div class="form-item-container" data-behavior="{{behavior.name}}">
        <span>{{behavior.name}}</span>
        {{each item as behavior.detail}}
        <div class="form-item" data-target="{{behavior.name}}">
            <vi-{{item.element.type}} 
                data-element="{{item.element | json}}"
                data-type="component" 
                data-key="{{item.name}}" 
                data-target="{{behavior.name}}"
                value="{{item.value}}">
            </vi-{{item.element.type}}>
        </div>
        {{/each}}
    </div>
    {{/each}}
</form>